package com.design.reactor.stretchIO._1_singleReactorSingleThread.impl;

import java.nio.channels.SocketChannel;

public class ClientMsg {
    private String id ;
    private SocketChannel socketChannel;
    private Object data;

    public ClientMsg() {
    }
    public ClientMsg(String id, SocketChannel socketChannel, Object data) {
        this.id = id;
        this.socketChannel = socketChannel;
        this.data = data;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public SocketChannel getSocketChannel() {
        return socketChannel;
    }

    public void setSocketChannel(SocketChannel socketChannel) {
        this.socketChannel = socketChannel;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ClientMsg{" +
                "id='" + id + '\'' +
                ", socketChannel=" + socketChannel +
                ", data=" + data +
                '}';
    }
}
